#include <stdio.h>
#include "mathfuncs.h"

int main(void)
{
	int a, b;

	do {	
		printf("输入两个两位数：");
		scanf("%d%d", &a, &b);
	} while (a > 99 || a < 10 || b > 99 || b < 10);
	
	printf("合并结果为%d\n", combine(a, b));

	printf("输入两个整数：");
	scanf("%d%d", &a, &b);
	printf("两个数中较小的是%d\n", min(a, b));

	printf("输入一个整数：");
	scanf("%d", &a);
	printf("符号函数的结果为%d\n", sign(a));

	printf("1到10之间整数和为%d\n", sum_all(1, 10));
	printf("10到20之间整数和为%d\n", sum_all(10, 20));
	printf("400到600之间整数和为%d\n", sum_all(400, 600));

	return 0;
}
